package com.zby.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum ConditionEnum {
    BrandNew(0, "全新"),
    LikeNew(1, "九成新"),
    Good(2, "八成新"),
    Acceptable(3, "七成新"),
    Poor(4, "六成新"),
    Bad(5, "五成新"),
    VeryBad(6, "四成新"),
    Other(7, "其他");
    @EnumValue
    private int code;
    @JsonValue
    private String message;
    ConditionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
